home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4846 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 68 6f 73 74 2e 6c |Path: ne|wshost.l|
|00000010| 61 6e 6c 2e 67 6f 76 21 | 74 61 6e 6d 6f 79 0a 46 |anl.gov!|tanmoy.F|
|00000020| 72 6f 6d 3a 20 74 61 6e | 6d 6f 79 40 71 63 64 2e |rom: tan|moy@qcd.|
|00000030| 6c 61 6e 6c 2e 67 6f 76 | 20 28 54 61 6e 6d 6f 79 |lanl.gov| (Tanmoy|
|00000040| 20 42 68 61 74 74 61 63 | 68 61 72 79 61 29 0a 4e | Bhattac|harya).N|
|00000050| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000060| 6c 61 6e 67 2e 63 0a 53 | 75 62 6a 65 63 74 3a 20 |lang.c.S|ubject: |
|00000070| 52 65 3a 20 23 64 65 66 | 69 6e 65 2c 20 71 75 65 |Re: #def|ine, que|
|00000080| 73 74 69 6f 6e 20 66 72 | 6f 6d 20 61 20 62 65 67 |stion fr|om a beg|
|00000090| 69 6e 6e 65 72 0a 46 6f | 6c 6c 6f 77 75 70 2d 54 |inner.Fo|llowup-T|
|000000a0| 6f 3a 20 70 6f 73 74 65 | 72 0a 44 61 74 65 3a 20 |o: poste|r.Date: |
|000000b0| 30 36 20 46 65 62 20 31 | 39 39 36 20 32 31 3a 33 |06 Feb 1|996 21:3|
|000000c0| 31 3a 34 38 20 47 4d 54 | 0a 4f 72 67 61 6e 69 7a |1:48 GMT|.Organiz|
|000000d0| 61 74 69 6f 6e 3a 20 4c | 6f 73 20 41 6c 61 6d 6f |ation: L|os Alamo|
|000000e0| 73 20 4e 61 74 69 6f 6e | 61 6c 20 4c 61 62 6f 72 |s Nation|al Labor|
|000000f0| 61 74 6f 72 79 0a 4d 65 | 73 73 61 67 65 2d 49 44 |atory.Me|ssage-ID|
|00000100| 3a 20 3c 54 41 4e 4d 4f | 59 2e 39 36 46 65 62 36 |: <TANMO|Y.96Feb6|
|00000110| 31 34 33 31 34 38 40 71 | 63 64 2e 6c 61 6e 6c 2e |143148@q|cd.lanl.|
|00000120| 67 6f 76 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |gov>.Ref|erences:|
|00000130| 20 3c 6d 61 2d 30 31 30 | 32 39 36 31 36 31 33 30 | <ma-010|29616130|
|00000140| 31 40 6d 61 63 31 34 37 | 2e 6d 61 74 68 73 2e 75 |1@mac147|.maths.u|
|00000150| 77 61 2e 65 64 75 2e 61 | 75 3e 20 3c 33 31 31 30 |wa.edu.a|u> <3110|
|00000160| 39 41 46 38 2e 34 32 33 | 42 40 7a 65 73 73 2e 75 |9AF8.423|B@zess.u|
|00000170| 6e 69 2d 73 69 65 67 65 | 6e 2e 64 65 3e 0a 09 3c |ni-siege|n.de>..<|
|00000180| 54 41 4e 4d 4f 59 2e 39 | 36 46 65 62 31 30 39 35 |TANMOY.9|6Feb1095|
|00000190| 36 34 31 40 71 63 64 2e | 6c 61 6e 6c 2e 67 6f 76 |641@qcd.|lanl.gov|
|000001a0| 3e 20 3c 33 31 31 36 35 | 43 41 31 2e 32 37 38 31 |> <31165|CA1.2781|
|000001b0| 45 34 39 34 40 74 65 78 | 61 73 2e 6e 65 74 3e 0a |E494@tex|as.net>.|
|000001c0| 09 3c 34 66 36 75 69 71 | 24 72 74 31 40 6e 65 77 |.<4f6uiq|$rt1@new|
|000001d0| 73 2e 63 65 6e 63 6f 6d | 2e 6e 65 74 3e 0a 4e 4e |s.cencom|.net>.NN|
|000001e0| 54 50 2d 50 6f 73 74 69 | 6e 67 2d 48 6f 73 74 3a |TP-Posti|ng-Host:|
|000001f0| 20 71 63 64 2e 6c 61 6e | 6c 2e 67 6f 76 0a 4d 69 | qcd.lan|l.gov.Mi|
|00000200| 6d 65 2d 56 65 72 73 69 | 6f 6e 3a 20 31 2e 30 0a |me-Versi|on: 1.0.|
|00000210| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 74 65 |Content-|Type: te|
|00000220| 78 74 0a 49 6e 2d 72 65 | 70 6c 79 2d 74 6f 3a 20 |xt.In-re|ply-to: |
|00000230| 74 61 6e 70 40 6e 73 27 | 73 20 6d 65 73 73 61 67 |tanp@ns'|s messag|
|00000240| 65 20 6f 66 20 36 20 46 | 65 62 20 31 39 39 36 20 |e of 6 F|eb 1996 |
|00000250| 30 37 3a 30 34 3a 35 38 | 20 47 4d 54 0a 0a 49 6e |07:04:58| GMT..In|
|00000260| 20 61 72 74 69 63 6c 65 | 20 3c 34 66 36 75 69 71 | article| <4f6uiq|
|00000270| 24 72 74 31 40 6e 65 77 | 73 2e 63 65 6e 63 6f 6d |$rt1@new|s.cencom|
|00000280| 2e 6e 65 74 3e 20 74 61 | 6e 70 40 6e 73 20 28 42 |.net> ta|np@ns (B|
|00000290| 69 6c 6c 20 57 65 6e 64 | 6c 69 6e 67 29 0a 77 72 |ill Wend|ling).wr|
|000002a0| 69 74 65 73 3a 20 0a 3c | 73 6e 69 70 3e 0a 20 20 |ites: .<|snip>. |
|000002b0| 20 4d 69 63 68 61 65 6c | 20 44 6f 75 67 6c 61 73 | Michael| Douglas|
|000002c0| 73 20 69 6e 65 78 70 6c | 69 63 61 62 6c 79 20 77 |s inexpl|icably w|
|000002d0| 72 6f 74 65 3a 0a 20 20 | 20 7d 20 57 68 61 74 20 |rote:. | } What |
|000002e0| 49 27 6d 20 74 72 79 69 | 6e 67 20 74 6f 20 66 69 |I'm tryi|ng to fi|
|000002f0| 67 75 72 65 20 6f 75 74 | 20 69 73 20 2a 77 68 79 |gure out| is *why|
|00000300| 2a 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 69 6e |* you wa|nt to in|
|00000310| 63 6c 75 64 65 20 63 6f | 6d 6d 65 6e 74 73 0a 20 |clude co|mments. |
|00000320| 20 20 7d 20 69 6e 73 69 | 64 65 20 6f 66 20 61 20 | } insi|de of a |
|00000330| 6d 61 63 72 6f 20 61 6e | 79 77 61 79 73 2e 2e 2e |macro an|yways...|
|00000340| 20 20 54 68 65 20 6f 6e | 6c 79 20 74 68 69 6e 67 | The on|ly thing|
|00000350| 20 74 68 61 74 20 77 6f | 75 6c 64 20 73 65 65 20 | that wo|uld see |
|00000360| 74 68 65 20 65 78 70 61 | 6e 64 65 64 0a 20 20 20 |the expa|nded. |
|00000370| 7d 20 76 65 72 73 69 6f | 6e 20 77 2f 20 63 6f 6d |} versio|n w/ com|
|00000380| 6d 65 6e 74 73 20 77 6f | 75 6c 64 20 62 65 20 74 |ments wo|uld be t|
|00000390| 68 65 20 63 6f 6d 70 69 | 6c 65 72 20 61 66 74 65 |he compi|ler afte|
|000003a0| 72 20 70 72 65 70 72 6f | 63 65 73 73 69 6e 67 2e |r prepro|cessing.|
|000003b0| 2e 2e 20 57 68 69 63 68 | 0a 20 20 20 7d 20 77 6f |.. Which|. } wo|
|000003c0| 75 6c 64 20 74 68 65 6e | 20 62 61 72 66 20 6f 6e |uld then| barf on|
|000003d0| 20 63 6f 6d 6d 65 6e 74 | 73 20 62 65 63 61 75 73 | comment|s becaus|
|000003e0| 65 20 74 68 65 20 70 72 | 65 70 72 6f 63 65 73 73 |e the pr|eprocess|
|000003f0| 6f 72 20 74 61 6b 65 73 | 20 74 68 65 20 63 6f 6d |or takes| the com|
|00000400| 6d 65 6e 74 73 0a 20 20 | 20 7d 20 6f 75 74 2e 2e |ments. | } out..|
|00000410| 2e 20 28 44 6f 65 73 6e | 27 74 20 69 74 3f 29 0a |. (Doesn|'t it?).|
|00000420| 0a 20 20 20 59 6f 75 20 | 77 61 6e 74 20 74 6f 20 |. You |want to |
|00000430| 62 65 20 63 61 72 65 66 | 75 6c 20 77 68 65 6e 20 |be caref|ul when |
|00000440| 70 75 74 74 69 6e 67 20 | 63 6f 6d 6d 65 6e 74 73 |putting |comments|
|00000450| 20 69 6e 74 6f 20 61 20 | 6d 61 63 72 6f 2e 20 20 | into a |macro. |
|00000460| 54 61 6b 65 2c 20 66 6f | 72 0a 20 20 20 69 6e 73 |Take, fo|r. ins|
|00000470| 74 61 6e 63 65 2c 20 74 | 68 69 73 20 28 63 6f 6d |tance, t|his (com|
|00000480| 6d 65 6e 74 73 20 69 6e | 20 43 2b 2b 2c 20 62 75 |ments in| C++, bu|
|00000490| 74 20 74 68 65 20 65 78 | 61 6d 70 6c 65 27 73 20 |t the ex|ample's |
|000004a0| 63 6f 6d 6d 65 6e 74 73 | 20 77 65 72 65 20 69 6e |comments| were in|
|000004b0| 20 0a 20 20 20 43 2b 2b | 20 73 6f 6f 6f 2e 2e 29 | . C++| sooo..)|
|000004c0| 3a 0a 0a 54 68 69 73 20 | 69 73 20 77 68 79 20 49 |:..This |is why I|
|000004d0| 20 62 65 6c 69 65 76 65 | 20 43 2b 2b 20 74 6f 70 | believe| C++ top|
|000004e0| 69 63 20 73 68 6f 75 6c | 64 20 62 65 20 64 69 73 |ic shoul|d be dis|
|000004f0| 63 75 73 73 65 64 20 69 | 6e 20 63 6f 6d 70 2e 6c |cussed i|n comp.l|
|00000500| 61 6e 67 2e 63 2b 2b 0a | 61 6e 64 20 6e 6f 74 20 |ang.c++.|and not |
|00000510| 69 6e 20 63 6f 6d 70 2e | 6c 61 6e 67 2e 63 0a 0a |in comp.|lang.c..|
|00000520| 20 20 20 23 64 65 66 69 | 6e 65 20 4d 41 43 52 4f | #defi|ne MACRO|
|00000530| 09 70 72 69 6e 74 66 28 | 22 25 64 20 22 2c 20 6a |.printf(|"%d ", j|
|00000540| 29 3b 20 2f 2f 63 6d 6e | 74 20 5c 0a 09 09 09 20 |); //cmn|t \.... |
|00000550| 20 20 2f 2a 63 6d 6e 74 | 2a 2f 20 20 20 20 20 20 | /*cmnt|*/ |
|00000560| 20 5c 0a 09 09 20 20 20 | 70 72 69 6e 74 66 28 22 | \... |printf("|
|00000570| 25 64 22 2c 20 6b 29 3b | 20 20 2f 2f 63 6d 6e 74 |%d", k);| //cmnt|
|00000580| 2e 0a 0a 20 20 20 54 68 | 69 73 20 6d 61 63 72 6f |... Th|is macro|
|00000590| 20 77 69 6c 6c 20 65 78 | 70 61 6e 64 20 74 6f 3a | will ex|pand to:|
|000005a0| 0a 0a 20 20 20 70 72 69 | 6e 74 66 28 22 25 64 20 |.. pri|ntf("%d |
|000005b0| 22 2c 20 6a 29 3b 09 2f | 2f 63 6d 6e 74 20 2f 2a |", j);./|/cmnt /*|
|000005c0| 63 6d 6e 74 20 2a 2f 20 | 70 72 69 6e 74 66 28 22 |cmnt */ |printf("|
|000005d0| 25 64 22 2c 20 6b 29 3b | 20 20 2f 2f 63 6d 6e 74 |%d", k);| //cmnt|
|000005e0| 2e 0a 0a 20 20 20 41 6e | 64 20 79 6f 75 20 77 69 |... An|d you wi|
|000005f0| 6c 6c 20 6f 6e 6c 79 20 | 62 65 20 70 72 69 6e 74 |ll only |be print|
|00000600| 69 6e 67 20 6f 75 74 20 | 74 68 65 20 76 61 6c 75 |ing out |the valu|
|00000610| 65 20 6f 66 20 6a 2e 0a | 0a 49 20 74 68 69 6e 6b |e of j..|.I think|
|00000620| 20 74 68 69 73 20 69 73 | 20 61 20 63 6f 6d 6d 6f | this is| a commo|
|00000630| 6e 20 6d 69 73 63 6f 6e | 63 65 70 74 69 6f 6e 2e |n miscon|ception.|
|00000640| 20 49 20 68 61 76 65 20 | 68 65 61 72 64 20 74 68 | I have |heard th|
|00000650| 61 74 20 65 76 65 6e 20 | 69 6e 20 43 2b 2b 2c 0a |at even |in C++,.|
|00000660| 63 6f 6d 6d 65 6e 74 73 | 20 61 72 65 20 74 6f 20 |comments| are to |
|00000670| 62 65 20 72 65 6d 6f 76 | 65 64 20 62 65 66 6f 72 |be remov|ed befor|
|00000680| 65 20 6d 61 63 72 6f 20 | 64 65 66 69 6e 69 74 69 |e macro |definiti|
|00000690| 6f 6e 73 2c 20 6e 6f 74 | 20 61 66 74 65 72 2e 0a |ons, not| after..|
|000006a0| 48 6f 77 65 76 65 72 2c | 20 61 20 5c 6e 65 77 6c |However,| a \newl|
|000006b0| 69 6e 65 20 61 74 20 74 | 68 65 20 65 6e 64 20 6f |ine at t|he end o|
|000006c0| 66 20 61 20 2f 2f 20 63 | 6f 6d 6d 65 6e 74 65 64 |f a // c|ommented|
|000006d0| 20 6c 69 6e 65 20 63 6f | 6e 74 69 6e 75 65 73 20 | line co|ntinues |
|000006e0| 74 68 65 0a 63 6f 6d 6d | 65 6e 74 20 61 6e 64 20 |the.comm|ent and |
|000006f0| 73 6f 2c 20 70 72 69 6e | 74 66 20 69 73 20 69 67 |so, prin|tf is ig|
|00000700| 6e 6f 72 65 64 20 72 69 | 67 68 74 20 61 74 20 74 |nored ri|ght at t|
|00000710| 68 65 20 64 65 66 69 6e | 69 74 69 6f 6e 20 74 69 |he defin|ition ti|
|00000720| 6d 65 2e 20 49 20 68 61 | 76 65 0a 61 6c 73 6f 20 |me. I ha|ve.also |
|00000730| 68 65 61 72 64 20 74 68 | 61 74 20 6d 61 6e 79 20 |heard th|at many |
|00000740| 63 6f 6d 70 69 6c 65 72 | 73 20 67 65 74 20 74 68 |compiler|s get th|
|00000750| 69 6e 67 73 20 77 72 6f | 6e 67 20 62 65 63 61 75 |ings wro|ng becau|
|00000760| 73 65 20 74 68 65 79 20 | 75 73 65 20 61 20 43 0a |se they |use a C.|
|00000770| 70 72 65 70 72 6f 63 65 | 73 73 6f 72 2c 20 61 6e |preproce|ssor, an|
|00000780| 64 20 6e 6f 74 20 61 20 | 43 2b 2b 20 70 72 65 70 |d not a |C++ prep|
|00000790| 72 6f 63 65 73 73 6f 72 | 2e 0a 0a 49 6e 20 61 6e |rocessor|...In an|
|000007a0| 79 20 63 61 73 65 2c 20 | 69 66 20 79 6f 75 20 77 |y case, |if you w|
|000007b0| 61 6e 74 20 74 6f 20 64 | 69 73 63 75 73 73 20 43 |ant to d|iscuss C|
|000007c0| 2b 2b 20 61 6e 64 20 67 | 65 74 20 69 6e 66 6f 72 |++ and g|et infor|
|000007d0| 6d 61 74 69 6f 6e 20 66 | 72 6f 6d 0a 73 6f 6d 65 |mation f|rom.some|
|000007e0| 6f 6e 65 20 77 68 6f 20 | 6b 6e 6f 77 73 2c 20 74 |one who |knows, t|
|000007f0| 61 6b 65 20 69 74 20 74 | 6f 20 63 6f 6d 70 2e 6c |ake it t|o comp.l|
|00000800| 61 6e 67 2e 63 2b 2b 2e | 20 49 72 72 65 73 70 65 |ang.c++.| Irrespe|
|00000810| 63 74 69 76 65 20 6f 66 | 20 77 68 61 74 20 73 6f |ctive of| what so|
|00000820| 6d 65 0a 70 65 6f 70 6c | 65 20 62 65 6c 69 65 76 |me.peopl|e believ|
|00000830| 65 2c 20 74 68 65 79 20 | 61 72 65 20 6e 6f 74 20 |e, they |are not |
|00000840| 74 68 65 20 73 61 6d 65 | 20 6c 61 6e 67 75 61 67 |the same| languag|
|00000850| 65 2c 20 6e 65 76 65 72 | 20 77 61 73 2c 20 61 6e |e, never| was, an|
|00000860| 64 0a 68 6f 70 65 66 75 | 6c 6c 79 2c 20 6e 65 76 |d.hopefu|lly, nev|
|00000870| 65 72 20 77 69 6c 6c 20 | 62 65 2e 0a 0a 28 49 66 |er will |be...(If|
|00000880| 20 77 68 61 74 20 49 20 | 73 61 69 64 20 61 62 6f | what I |said abo|
|00000890| 75 74 20 69 73 20 77 72 | 6f 6e 67 2c 20 70 6c 65 |ut is wr|ong, ple|
|000008a0| 61 73 65 20 65 2d 6d 61 | 69 6c 20 6d 65 2e 29 0a |ase e-ma|il me.).|
|000008b0| 0a 43 68 65 65 72 73 0a | 54 61 6e 6d 6f 79 0a 2d |.Cheers.|Tanmoy.-|
|000008c0| 2d 0a 74 61 6e 6d 6f 79 | 40 71 63 64 2e 6c 61 6e |-.tanmoy|@qcd.lan|
|000008d0| 6c 2e 67 6f 76 28 31 32 | 38 2e 31 36 35 2e 32 33 |l.gov(12|8.165.23|
|000008e0| 2e 34 36 29 20 44 45 43 | 4e 45 54 3a 20 42 45 54 |.46) DEC|NET: BET|
|000008f0| 41 3a 3a 22 74 61 6e 6d | 6f 79 40 6c 61 6e 6c 2e |A::"tanm|oy@lanl.|
|00000900| 67 6f 76 22 28 31 2e 32 | 31 38 3d 31 32 34 32 29 |gov"(1.2|18=1242)|
|00000910| 0a 54 61 6e 6d 6f 79 20 | 42 68 61 74 74 61 63 68 |.Tanmoy |Bhattach|
|00000920| 61 72 79 61 20 4f 3a 54 | 2d 38 28 4d 53 20 42 32 |arya O:T|-8(MS B2|
|00000930| 38 35 29 4c 41 4e 4c 2c | 4e 4d 38 37 35 34 35 20 |85)LANL,|NM87545 |
|00000940| 48 3a 23 39 2c 33 30 30 | 30 2c 54 72 69 6e 69 74 |H:#9,300|0,Trinit|
|00000950| 79 20 44 72 69 76 65 2c | 4e 4d 38 37 35 34 34 0a |y Drive,|NM87544.|
|00000960| 4f 74 68 65 72 73 20 73 | 65 65 20 3c 67 6f 70 68 |Others s|ee <goph|
|00000970| 65 72 3a 2f 2f 79 61 6c | 65 69 6e 66 6f 2e 79 61 |er://yal|einfo.ya|
|00000980| 6c 65 2e 65 64 75 3a 37 | 37 30 30 2f 30 30 2f 49 |le.edu:7|700/00/I|
|00000990| 6e 74 65 72 6e 65 74 2d | 50 65 6f 70 6c 65 2f 69 |nternet-|People/i|
|000009a0| 6e 74 65 72 6e 65 74 2d | 6d 61 69 6c 3e 2c 0a 3c |nternet-|mail>,.<|
|000009b0| 68 74 74 70 3a 2f 2f 61 | 6c 70 68 61 2e 61 63 61 |http://a|lpha.aca|
|000009c0| 73 74 2e 6e 6f 76 61 2e | 65 64 75 2f 63 67 69 2d |st.nova.|edu/cgi-|
|000009d0| 62 69 6e 2f 69 6e 6d 67 | 71 2e 70 6c 3e 6f 72 3c |bin/inmg|q.pl>or<|
|000009e0| 66 74 70 3a 2f 2f 63 73 | 64 34 2e 63 73 64 2e 75 |ftp://cs|d4.csd.u|
|000009f0| 77 6d 2e 65 64 75 2f 70 | 75 62 2f 0a 69 6e 74 65 |wm.edu/p|ub/.inte|
|00000a00| 72 6e 65 74 77 6f 72 6b | 2d 6d 61 69 6c 2d 67 75 |rnetwork|-mail-gu|
|00000a10| 69 64 65 3e 2e 20 2d 2d | 20 3c 68 74 74 70 3a 2f |ide>. --| <http:/|
|00000a20| 2f 6e 71 63 64 2e 6c 61 | 6e 6c 2e 67 6f 76 2f 70 |/nqcd.la|nl.gov/p|
|00000a30| 65 6f 70 6c 65 2f 74 61 | 6e 6d 6f 79 2f 74 61 6e |eople/ta|nmoy/tan|
|00000a40| 6d 6f 79 2e 68 74 6d 6c | 3e 0a 66 61 78 3a 20 31 |moy.html|>.fax: 1|
|00000a50| 20 28 35 30 35 29 20 36 | 36 35 20 33 30 30 33 20 | (505) 6|65 3003 |
|00000a60| 20 20 76 6f 69 63 65 3a | 20 31 20 28 35 30 35 29 | voice:| 1 (505)|
|00000a70| 20 36 36 35 20 34 37 33 | 33 20 20 20 20 5b 20 48 | 665 473|3 [ H|
|00000a80| 6f 6d 65 3a 20 31 20 28 | 35 30 35 29 20 36 36 32 |ome: 1 (|505) 662|
|00000a90| 20 35 35 39 36 20 5d 0a | | 5596 ].| |
+--------+-------------------------+-------------------------+--------+--------+